package com.wwwarehouse.taskcenter.bean.job_point;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Jackie on 2017/11/16.
 * 所有货主请求结果实体
 */

public class ConsignorResponseBean implements Parcelable {
    private String name;
    private boolean isSelect;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean select) {
        isSelect = select;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
        dest.writeByte(this.isSelect ? (byte) 1 : (byte) 0);
    }

    public ConsignorResponseBean() {
    }

    protected ConsignorResponseBean(Parcel in) {
        this.name = in.readString();
        this.isSelect = in.readByte() != 0;
    }

    public static final Parcelable.Creator<ConsignorResponseBean> CREATOR = new Parcelable.Creator<ConsignorResponseBean>() {
        @Override
        public ConsignorResponseBean createFromParcel(Parcel source) {
            return new ConsignorResponseBean(source);
        }

        @Override
        public ConsignorResponseBean[] newArray(int size) {
            return new ConsignorResponseBean[size];
        }
    };
}
